package data;

import com.EntityName;
import com.google.appengine.api.datastore.Entity;

public class HotelCustomSetting extends AbstractData{
	private long id = -1;
	private long hotelId;
	private Boolean BillingInvoice;
	private Boolean CurrencyRate;
	private Boolean AddTax;
	private Boolean EnhancedLedger;
	private Boolean ReviewExpress;
	private Boolean BookingConfirmationHeaders;
	private Boolean PaymentGatewayRefund;
	private Boolean ShowCustomReservationFolio;
	private Boolean UseInMailChimpSubscriber;
	private Boolean ShowQuickView;
	private Boolean ShowRatesOfTheDay;
	private Boolean HideDiscAllw;
	private Boolean ShowOnlyTotalAmountPOS;
	private Boolean GetFullCreditCard;
	private Boolean CalculateWebBookingPolicy;
	private Boolean GetFullCrddetailsInBookingNotification;
	private Boolean POSFolioInclusiveOfTax;
	private Boolean AllowGenOfTranToRoom;
	private Boolean ShowBookingAmountAccStateFolio;
	private Boolean EnableMultiLanguage;
	private Boolean ViewLocatorDetailsOnFront;
	private Boolean ShowBookingAmountBalance;
	private String EmailID;
	
	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}
	
	public long getHotelId() {
		return hotelId;
	}

	public void setHotelId(long hotelId) {
		this.hotelId = hotelId;
	}

	public Boolean getBillingInvoice() {
		return BillingInvoice;
	}

	public void setBillingInvoice(Boolean billingInvoice) {
		BillingInvoice = billingInvoice;
	}

	public Boolean getCurrencyRate() {
		return CurrencyRate;
	}

	public void setCurrencyRate(Boolean currencyRate) {
		CurrencyRate = currencyRate;
	}

	public Boolean getAddTax() {
		return AddTax;
	}

	public void setAddTax(Boolean addTax) {
		AddTax = addTax;
	}

	public Boolean getEnhancedLedger() {
		return EnhancedLedger;
	}

	public void setEnhancedLedger(Boolean enhancedLedger) {
		EnhancedLedger = enhancedLedger;
	}

	public Boolean getReviewExpress() {
		return ReviewExpress;
	}

	public void setReviewExpress(Boolean reviewExpress) {
		ReviewExpress = reviewExpress;
	}

	public Boolean getBookingConfirmationHeaders() {
		return BookingConfirmationHeaders;
	}

	public void setBookingConfirmationHeaders(Boolean bookingConfirmationHeaders) {
		BookingConfirmationHeaders = bookingConfirmationHeaders;
	}

	public Boolean getPaymentGatewayRefund() {
		return PaymentGatewayRefund;
	}

	public void setPaymentGatewayRefund(Boolean paymentGatewayRefund) {
		PaymentGatewayRefund = paymentGatewayRefund;
	}

	public Boolean getShowCustomReservationFolio() {
		return ShowCustomReservationFolio;
	}

	public void setShowCustomReservationFolio(Boolean showCustomReservationFolio) {
		ShowCustomReservationFolio = showCustomReservationFolio;
	}

	public Boolean getUseInMailChimpSubscriber() {
		return UseInMailChimpSubscriber;
	}

	public void setUseInMailChimpSubscriber(Boolean useInMailChimpSubscriber) {
		UseInMailChimpSubscriber = useInMailChimpSubscriber;
	}

	public Boolean getShowQuickView() {
		return ShowQuickView;
	}

	public void setShowQuickView(Boolean showQuickView) {
		ShowQuickView = showQuickView;
	}

	public Boolean getShowRatesOfTheDay() {
		return ShowRatesOfTheDay;
	}

	public void setShowRatesOfTheDay(Boolean showRatesOfTheDay) {
		ShowRatesOfTheDay = showRatesOfTheDay;
	}

	public Boolean getHideDiscAllw() {
		return HideDiscAllw;
	}

	public void setHideDiscAllw(Boolean hideDiscAllw) {
		HideDiscAllw = hideDiscAllw;
	}

	public Boolean getShowOnlyTotalAmountPOS() {
		return ShowOnlyTotalAmountPOS;
	}

	public void setShowOnlyTotalAmountPOS(Boolean showOnlyTotalAmountPOS) {
		ShowOnlyTotalAmountPOS = showOnlyTotalAmountPOS;
	}

	public Boolean getGetFullCreditCard() {
		return GetFullCreditCard;
	}

	public void setGetFullCreditCard(Boolean getFullCreditCard) {
		GetFullCreditCard = getFullCreditCard;
	}

	public Boolean getCalculateWebBookingPolicy() {
		return CalculateWebBookingPolicy;
	}

	public void setCalculateWebBookingPolicy(Boolean calculateWebBookingPolicy) {
		CalculateWebBookingPolicy = calculateWebBookingPolicy;
	}

	public Boolean getGetFullCrddetailsInBookingNotification() {
		return GetFullCrddetailsInBookingNotification;
	}

	public void setGetFullCrddetailsInBookingNotification(
			Boolean getFullCrddetailsInBookingNotification) {
		GetFullCrddetailsInBookingNotification = getFullCrddetailsInBookingNotification;
	}

	public Boolean getPOSFolioInclusiveOfTax() {
		return POSFolioInclusiveOfTax;
	}

	public void setPOSFolioInclusiveOfTax(Boolean pOSFolioInclusiveOfTax) {
		POSFolioInclusiveOfTax = pOSFolioInclusiveOfTax;
	}

	public Boolean getAllowGenOfTranToRoom() {
		return AllowGenOfTranToRoom;
	}

	public void setAllowGenOfTranToRoom(Boolean allowGenOfTranToRoom) {
		AllowGenOfTranToRoom = allowGenOfTranToRoom;
	}

	public Boolean getShowBookingAmountAccStateFolio() {
		return ShowBookingAmountAccStateFolio;
	}

	public void setShowBookingAmountAccStateFolio(
			Boolean showBookingAmountAccStateFolio) {
		ShowBookingAmountAccStateFolio = showBookingAmountAccStateFolio;
	}

	public Boolean getEnableMultiLanguage() {
		return EnableMultiLanguage;
	}

	public void setEnableMultiLanguage(Boolean enableMultiLanguage) {
		EnableMultiLanguage = enableMultiLanguage;
	}

	public Boolean getViewLocatorDetailsOnFront() {
		return ViewLocatorDetailsOnFront;
	}

	public void setViewLocatorDetailsOnFront(Boolean viewLocatorDetailsOnFront) {
		ViewLocatorDetailsOnFront = viewLocatorDetailsOnFront;
	}

	public Boolean getShowBookingAmountBalance() {
		return ShowBookingAmountBalance;
	}

	public void setShowBookingAmountBalance(Boolean showBookingAmountBalance) {
		ShowBookingAmountBalance = showBookingAmountBalance;
	}

	public String getEmailID() {
		return EmailID;
	}

	public void setEmailID(String emailID) {
		EmailID = emailID;
	}

	public HotelCustomSetting(){
	}
	
	@Override
	public Entity getEntity() {
		Entity item;
		if(this.key == null)
			item = new Entity(EntityName.HotelCustomSetting);
		else
			item = new Entity(this.key);
		item.setProperty("hotelId", this.hotelId);
		item.setProperty("BillingInvoice", this.BillingInvoice);
		item.setProperty("CurrencyRate", this.CurrencyRate);
		item.setProperty("AddTax", this.AddTax);
		item.setProperty("EnhancedLedger", this.EnhancedLedger);
		item.setProperty("ReviewExpress", this.ReviewExpress);
		item.setProperty("BookingConfirmationHeaders", this.BookingConfirmationHeaders);
		item.setProperty("PaymentGatewayRefund", this.PaymentGatewayRefund);
		item.setProperty("ShowCustomReservationFolio", this.ShowCustomReservationFolio);
		item.setProperty("UseInMailChimpSubscriber", this.UseInMailChimpSubscriber);
		item.setProperty("ShowQuickView", this.ShowQuickView);
		item.setProperty("ShowRatesOfTheDay", this.ShowRatesOfTheDay);
		item.setProperty("HideDiscAllw", this.HideDiscAllw);
		item.setProperty("ShowOnlyTotalAmountPOS", this.ShowOnlyTotalAmountPOS);
		item.setProperty("GetFullCreditCard", this.GetFullCreditCard);
		item.setProperty("CalculateWebBookingPolicy", this.CalculateWebBookingPolicy);
		item.setProperty("GetFullCrddetailsInBookingNotification", this.GetFullCrddetailsInBookingNotification);
		item.setProperty("POSFolioInclusiveOfTax", this.POSFolioInclusiveOfTax);
		item.setProperty("AllowGenOfTranToRoom", this.AllowGenOfTranToRoom);
		item.setProperty("ShowBookingAmountAccStateFolio", this.ShowBookingAmountAccStateFolio);
		item.setProperty("EnableMultiLanguage", this.EnableMultiLanguage);
		item.setProperty("ViewLocatorDetailsOnFront", this.ViewLocatorDetailsOnFront);
		item.setProperty("ShowBookingAmountBalance", this.ShowBookingAmountBalance);
		item.setProperty("EmailID", this.EmailID);
		return item;
	}

	@Override
	public void setEntity(Entity entity) {
		this.id = entity.getKey().getId();
		this.hotelId = (Long) entity.getProperty("hotelId");
		this.BillingInvoice = (Boolean) entity.getProperty("BillingInvoice");
		this.CurrencyRate = (Boolean) entity.getProperty("CurrencyRate");
		this.AddTax = (Boolean) entity.getProperty("AddTax");
		this.EnhancedLedger = (Boolean) entity.getProperty("EnhancedLedger");
		this.ReviewExpress = (Boolean) entity.getProperty("ReviewExpress");
		this.BookingConfirmationHeaders = (Boolean) entity.getProperty("BookingConfirmationHeaders");
		this.PaymentGatewayRefund = (Boolean) entity.getProperty("PaymentGatewayRefund");
		this.ShowCustomReservationFolio = (Boolean) entity.getProperty("ShowCustomReservationFolio");
		this.UseInMailChimpSubscriber = (Boolean) entity.getProperty("UseInMailChimpSubscriber");
		this.ShowQuickView = (Boolean) entity.getProperty("ShowQuickView");
		this.ShowRatesOfTheDay = (Boolean) entity.getProperty("ShowRatesOfTheDay");
		this.HideDiscAllw = (Boolean) entity.getProperty("HideDiscAllw");
		this.ShowOnlyTotalAmountPOS = (Boolean) entity.getProperty("ShowOnlyTotalAmountPOS");
		this.GetFullCreditCard = (Boolean) entity.getProperty("GetFullCreditCard");
		this.CalculateWebBookingPolicy = (Boolean) entity.getProperty("CalculateWebBookingPolicy");
		this.GetFullCrddetailsInBookingNotification = (Boolean) entity.getProperty("GetFullCrddetailsInBookingNotification");
		this.POSFolioInclusiveOfTax = (Boolean) entity.getProperty("POSFolioInclusiveOfTax");
		this.AllowGenOfTranToRoom = (Boolean) entity.getProperty("AllowGenOfTranToRoom");
		this.ShowBookingAmountAccStateFolio = (Boolean) entity.getProperty("ShowBookingAmountAccStateFolio");
		this.EnableMultiLanguage = (Boolean) entity.getProperty("EnableMultiLanguage");
		this.ViewLocatorDetailsOnFront = (Boolean) entity.getProperty("ViewLocatorDetailsOnFront");
		this.ShowBookingAmountBalance = (Boolean) entity.getProperty("ShowBookingAmountBalance");
		this.EmailID = (String) entity.getProperty("EmailID");
		this.key = entity.getKey();
	}

	public void LoadData() {
		if (this.id > -1) {
			Entity entity = LoadData(EntityName.HotelCustomSetting, this.id);
			setEntity(entity);
		}
	}

}
